<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>New Parameters</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration52.datetime.html">Changes in PHP datetime
   support</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration52.functions.html">New Functions</a></div>
 <div class="up"><a href="migration52.html">Migrating from PHP 5.1.x to PHP 5.2.x</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="migration52.parameters" class="section">
  <h2 class="title">New Parameters</h2>
  <p class="para">
   Some functions were given new, optional, parameters in PHP 5.2.x:
  </p>

  <p class="para">PHP Core:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.htmlentities.html" class="function">htmlentities()</a></span>
     - added <em><code class="parameter">double_encode</code></em> in PHP 5.2.3.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.htmlspecialchars.html" class="function">htmlspecialchars()</a></span>
     - added <em><code class="parameter">double_encode</code></em> in PHP 5.2.3.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.base64-decode.html" class="function">base64_decode()</a></span>
     - added <em><code class="parameter">strict</code></em>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.setcookie.html" class="function">setcookie()</a></span>
     - added <em><code class="parameter">httponly</code></em>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.setrawcookie.html" class="function">setrawcookie()</a></span>
     - added <em><code class="parameter">httponly</code></em>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.session-set-cookie-params.html" class="function">session_set_cookie_params()</a></span>
     - added <em><code class="parameter">httponly</code></em>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.memory-get-usage.html" class="function">memory_get_usage()</a></span>
     - added <em><code class="parameter">real_usage</code></em>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.get-loaded-extensions.html" class="function">get_loaded_extensions()</a></span>
     - added <em><code class="parameter">zend_extensions</code></em> in PHP 5.2.4
    </span>
   </li>
  </ul>

  <p class="para"><a href="ref.curl.html" class="link">curl</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.curl-multi-info-read.html" class="function">curl_multi_info_read()</a></span>
     - added <em><code class="parameter">msgs_in_queue</code></em>
    </span>
   </li>
  </ul>

  <p class="para"><a href="ref.datetime.html" class="link">datetime</a></p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.date.html" class="function">date()</a></span>
     - added &quot;u&quot; (milliseconds) format character in PHP 5.2.2
    </span>
   </li>
  </ul>

  <p class="para"><a href="ref.imap.html" class="link">imap</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.imap-open.html" class="function">imap_open()</a></span>
     - added <em><code class="parameter">n_retries</code></em>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.imap-reopen.html" class="function">imap_reopen()</a></span>
     - added <em><code class="parameter">n_retries</code></em>
    </span>
   </li>
  </ul>

  <p class="para"><a href="ref.mbstring.html" class="link">mbstring</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.mb-strrpos.html" class="function">mb_strrpos()</a></span>
     - added <em><code class="parameter">offset</code></em>
    </span>
    <div class="warning"><strong class="warning">Warning</strong>
     <p class="simpara">
      The <em><code class="parameter">offset</code></em> parameter was put in the position
      the <em><code class="parameter">encoding</code></em> parameter used to be.
      Backward compatibility has been
      provided by allowing <em><code class="parameter">encoding</code></em> to be specified
      as the third parameter.  Using this backward compatibility mode is
      not recommended because it will be removed in a future release of PHP.
     </p>
    </div>
   </li>
  </ul>

  <p class="para"><a href="ref.ming.html" class="link">ming</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="swfmovie.streammp3.html" class="function">SWFMovie::streamMP3()</a></span>
     - added <em><code class="parameter">skip</code></em> in PHP 5.2.1
    </span>
   </li>
  </ul>

  <p class="para"><a href="ref.openssl.html" class="link">openssl</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.openssl-verify.html" class="function">openssl_verify()</a></span>
     - added <em><code class="parameter">signature_algo</code></em>
    </span>
   </li>
  </ul>

  <p class="para"><a href="ref.pgsql.html" class="link">pgsql</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.pg-escape-bytea.html" class="function">pg_escape_bytea()</a></span>
     - added <em><code class="parameter">connection</code></em>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.pg-escape-string.html" class="function">pg_escape_string()</a></span>
     - added <em><code class="parameter">connection</code></em>
    </span>
   </li>
  </ul>

  <p class="para"><a href="ref.simplexml.html" class="link">simplexml</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="simplexmlelement.construct.html" class="function">SimpleXMLElement::__construct()</a></span>
     - added <em><code class="parameter">is_prefix</code></em>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="simplexmlelement.attributes.html" class="function">SimpleXMLElement::attributes()</a></span>
     - added <em><code class="parameter">is_prefix</code></em>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="simplexmlelement.children.html" class="function">SimpleXMLElement::children()</a></span>
     - added <em><code class="parameter">is_prefix</code></em>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.simplexml-load-file.html" class="function">simplexml_load_file()</a></span>
     - added <em><code class="parameter">is_prefix</code></em>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.simplexml-load-string.html" class="function">simplexml_load_string()</a></span>
     - added <em><code class="parameter">is_prefix</code></em>
    </span>
   </li>
  </ul>

  <p class="para"><a href="ref.spl.html" class="link">spl</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     array iterator_to_array(Traversable it [, bool use_keys = true])
     - added <em><code class="parameter">use_keys</code></em> in PHP 5.2.1
    </span>
   </li>
  </ul>

  <p class="para"><a href="book.xmlreader.html" class="link">xmlreader</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="xmlreader.open.html" class="function">XMLReader::open()</a></span>
     - added <em><code class="parameter">encoding</code></em>
     and <em><code class="parameter">options</code></em>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="xmlreader.xml.html" class="function">XMLReader::XML()</a></span>
     - added <em><code class="parameter">encoding</code></em>
     and <em><code class="parameter">options</code></em>
    </span>
   </li>
  </ul>

  <p class="para"><a href="ref.xmlwriter.html" class="link">XMLWriter</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.xmlwriter-write-element.html" class="function">xmlwriter_write_element()</a></span>
     - the <em><code class="parameter">content</code></em> became optional in PHP 5.2.3
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.xmlwriter-write-element-ns.html" class="function">xmlwriter_write_element_ns()</a></span>
     - the <em><code class="parameter">content</code></em> became optional in PHP 5.2.3
    </span>
   </li>
  </ul>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration52.datetime.html">Changes in PHP datetime
   support</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration52.functions.html">New Functions</a></div>
 <div class="up"><a href="migration52.html">Migrating from PHP 5.1.x to PHP 5.2.x</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
